<?php /* Smarty version 2.6.18, created on 2010-09-21 16:13:22
         compiled from alumni/profile/edit_position_current.tpl */ ?>
<div id="solvay_content2010">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/left_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

	<div id="content2010_right">
    <div class="ctn_contentright2010">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/top_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="content_tab">
      	<form name="frmAddAnotherJob" id="frmAddAnotherJob" action="" method="post" onsubmit="return checkFrmAddAnotherJob(this)">
      	<div class="title_contenttab">
        	<table cellpadding="0" cellspacing="0" border="0" width="100%">
          	<tr>
            	<td align="left">current positions</td>
          	</tr>
          </table>
     		</div>
        <div class="text_13" style="color:#FF0000; text-align:center"><?php echo $this->_tpl_vars['STR_MSG']; ?>
</div>
        <div id="id_profile_past_position">
        	<?php if ($this->_tpl_vars['arrListCurrentPosition']): ?>
        	<?php $_from = $this->_tpl_vars['arrListCurrentPosition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameCurrent'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameCurrent']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyCurrent'] => $this->_tpl_vars['itemCurrent']):
        $this->_foreach['nameCurrent']['iteration']++;
?>
            <div class="ctn_texttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
              	<tr>
                  <td width="190" class="text_13">Position title</td>
                    <td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300" value="<?php echo $this->_tpl_vars['itemCurrent']['title']; ?>
" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company</td>
                    <td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300" value="<?php echo $this->_tpl_vars['itemCurrent']['company']; ?>
"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Company website</td>
                    <td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300" value="<?php echo $this->_tpl_vars['itemCurrent']['website']; ?>
"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Industry</td>
                    <td class="text_13_bg">
											<select name="industry_id[]" id="industry_id[]" class="select2010_300">
												<option value="-1"> -- Select Industry -- </option>
												<?php $_from = $this->_tpl_vars['array_industry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIndus'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIndus']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIndus'] => $this->_tpl_vars['itemIndus']):
        $this->_foreach['nameIndus']['iteration']++;
?>
													<option<?php if ($this->_tpl_vars['itemCurrent']['industry_id'] == $this->_tpl_vars['itemIndus']['id']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['itemIndus']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemIndus']['industry_name']; ?>
</option>
												<?php endforeach; endif; unset($_from); ?>  
											</select>
										</td>
                </tr>
              </table>
            </div>
            <?php if (! ($this->_foreach['nameCurrent']['iteration'] == $this->_foreach['nameCurrent']['total'])): ?>
            	<div style="height:2px; background-color:#FFD5AA; margin-top:15px;"></div>
            <?php endif; ?>
          <?php endforeach; endif; unset($_from); ?>
          <?php else: ?>
          	<div class="ctn_texttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                  <td width="190" class="text_13">Position title</td>
                    <td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300" value="" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company</td>
                    <td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300" value=""  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Company website</td>
                    <td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300" value=""  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Industry</td>
                    <td class="text_13_bg">
											<select name="industry_id[]" id="industry_id[]" class="select2010_300">
												<option value="-1"> -- Select Industry -- </option>
												<?php $_from = $this->_tpl_vars['array_industry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIndus'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIndus']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIndus'] => $this->_tpl_vars['itemIndus']):
        $this->_foreach['nameIndus']['iteration']++;
?>
													<option value="<?php echo $this->_tpl_vars['itemIndus']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemIndus']['industry_name']; ?>
</option>
												<?php endforeach; endif; unset($_from); ?>  
											</select>
										</td>
                </tr>
              </table>
            </div>
          <?php endif; ?>
        </div>
        
        <div class="ctn_texttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
              <td width="190" class="text_13"><a href="javascript:addAnotherJob()" class="link_add">Add another job</a></td>
              <td class="text_13">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="2" height="10"></td>
            </tr>
            <tr>
              <td width="190" class="text_13">&nbsp;</td>
              <td class="text_13"><input type="submit" name="" class="btn_login2010" value="Save" /></td>
            </tr>
          </table>
        </div>
        </form>
			</div>
 		</div>
 	</div>
</div>
<script type="text/javascript">
	function checkFrmAddAnotherJob(p_objForm)
	{
		
	}
	
	function addAnotherJob()
	{
		var strAnotherJob = '<div style="height:2px; background-color:#FFD5AA; margin-top:15px;"></div><div class="ctn_texttab"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width="190" class="text_13">Position title</td><td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300"  /></td></tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13_bg">Company</td><td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300"  /></td></tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13">Company website</td><td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300"  /></td> </tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13_bg">Industry</td><td class="text_13_bg"><select name="industry_id[]" id="industry_id[]" class="select2010_300"><option value="-1"> -- Select Industry -- </option><?php $_from = $this->_tpl_vars['array_industry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameIndus'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameIndus']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyIndus'] => $this->_tpl_vars['itemIndus']):
        $this->_foreach['nameIndus']['iteration']++;
?><option value="<?php echo $this->_tpl_vars['itemIndus']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemIndus']['industry_name']; ?>
</option><?php endforeach; endif; unset($_from); ?></select></td></tr></table></div>';
		
			document.getElementById("id_profile_past_position").innerHTML = document.getElementById("id_profile_past_position").innerHTML + strAnotherJob;
	}
	
</script>